package bean.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderVo {
    private Double money;   //交易金额
    private Long tradePayment;  //支付方式
    private Long tradeState;    //支付状态
    private Long tradeService;  //选择的服务id
    private Long tradeNo;

    public Long getTradeNo() {
        Long count = Long.valueOf(0);
        count ++;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
        StringBuilder sb = new StringBuilder();
        sb.append(sdf.format(new Date()));
        sb.append(count+10000);
        tradeNo = Long.parseLong(String.valueOf(sb));
        return tradeNo;
    }

    public void setTradeNo(Long tradeNo) {
        this.tradeNo = tradeNo;
    }

    public Long getTradePayment() {
        return tradePayment;
    }

    public void setTradePayment(Long tradePayment) {
        this.tradePayment = tradePayment;
    }

    public Long getTradeState() {
        return tradeState;
    }

    public void setTradeState(Long tradeState) {
        this.tradeState = tradeState;
    }

    public Long getTradeService() {
        return tradeService;
    }

    public void setTradeService(Long tradeService) {
        this.tradeService = tradeService;
    }

    public Double getMoney() {

        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
}
